<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<title>福维克美善品</title>
		<link rel="stylesheet" href="css/index.css" />
	</head>

	<body class="index1">
		<div class="button_group">
			<a class="lt_btn" href="index2.html">品鉴中心<span class="biao"></span></a>
			<a class="lt_btn" href="index2.html" style="margin-left: 20%;">认识美善品<span class="biao"></span></a>
			<a class="lt_btn" href="index2.html" style="margin-left: 40%;">趣味烹饪<span class="biao"></span></a>
			<a class="lt_btn" href="index2.html" style="margin-left: 60%;">美食天地<span class="biao"></span></a>
		</div>
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="js/bodySize.js"></script>
		<script>
			function setCookie(name, value) {
				var date = new Date();
				date.setTime(date.getTime() + 30 * 24 * 60 * 60 * 1000);
				document.cookie = name + '=' + escape(value) + ';expires=' + date.toDateString();
			}
			setCookie('james', 'king');

			function getCookie(name) {
				if(document.cookie.length > 0) {
					c_start = document.cookie.indexOf(name + "=")
					if(c_start != -1) {
						c_start = c_start + name.length + 1
						c_end = document.cookie.indexOf(";", c_start)
						if(c_end == -1) c_end = document.cookie.length
						return unescape(document.cookie.substring(c_start, c_end))
					}
				}
				return "";
			}

			function delCookie(name) {
				var exp = new Date();
				exp.setTime(exp.getTime() + (-1 * 24 * 60 * 60 * 1000));
				var cval = GetCookieValue(name);
				document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
			}
            delCookie('james');
			var name = getCookie('james');
			alert(name)
		</script>
	</body>

</html>